<?php

$a = array('item_name'=>1233,'item_num'=>12,'item_property'=>22);

$b = array('1'=>array('item_name'=>array(0=>122,1=>22,2=>33),
										'item_num'=>array(0=>11,1=>22,2=>33),
										'item_property'=>array(0=>122,1=>223,2=>333),
										'charge_num'=>12,
										'consum_num'=>33,
							),
					'2'=>array('item_name'=>1233,'item_num'=>12,'item_property'=>22),
					'3'=>array('item_name'=>1233,'item_num'=>12,'item_property'=>22)
);

$c = array('1'=>array('item_name'=>1233,'item_num'=>12,'item_property'=>22),
					'2'=>array('item_name'=>1233,'item_num'=>12,'item_property'=>22),
					'3'=>array('item_name'=>1233,'item_num'=>12,'item_property'=>22),
					'consum'=>12,
					'charge_num'=>3
);

$str = base64_encode(addslashes(serialize($b)));

$str1 = base64_decode($str);

echo ($str1);

function mb_unserialize($serial_str) {
	$out = preg_replace ( '!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str );
	return unserialize ( $out );
}